//
//  TestProjViewController.m
//  TestProj
//
//  Created by iD Student on 6/25/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "TestProjViewController.h"

@interface TestProjViewController ()

@end

@implementation TestProjViewController
@synthesize fld2 = _fld1;
@synthesize fld1 = _fld2;

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)viewDidUnload
{
    [self setFld2:nil];
    [self setFld1:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}

- (IBAction)calc:(id)sender {
    int val1 = self.fld1.text.intValue;
    int val2 = self.fld2.text.intValue;
    int val3 = val1 + val2;
    //self.fld1.text = [NSString stringWithFormat: @"%s", val3];
}
@end
